package com.loong.web.gp4j.bean.param.users;

import javax.validation.constraints.Pattern;

import com.loong.web.gp4j.bean.param.search.SearchParam;

/**
 * 用户列表参数
 *
 * @author 张成轩
 */
public class UsersParam extends SearchParam {

	private String auths;
	private String statuses;

	/**
	 * @return 权限
	 */
	@Pattern(regexp = "[0-9]*(,[0-9]+)*", message = "权限格式错误")
	public String getAuths() {

		return auths;
	}

	/**
	 * @param auths 权限
	 */
	public void setAuths(String auths) {

		this.auths = auths;
	}

	/**
	 * @return 状态
	 */
	@Pattern(regexp = "[0-9]*(,[0-9]+)*", message = "状态格式错误")
	public String getStatuses() {

		return statuses;
	}

	/**
	 * @param statuses 状态
	 */
	public void setStatuses(String statuses) {

		this.statuses = statuses;
	}
}
